package com.chushouya.order.dto.api.partnernotify;

import com.alibaba.fastjson.annotation.JSONField;
import com.general.framework.core.lang.Dates;
import com.chushouya.order.constants.PartnerNotifyTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("用户签约成功")
public class SignNotifyDTO extends PartnerBaseNotify{
    public SignNotifyDTO(){
        super.setNotifyType(PartnerNotifyTypeEnum.SIGN.value());
        super.setNotifyName(PartnerNotifyTypeEnum.SIGN.named());
    }

    /**
     * 订单数据
     */
    private SignNotifyData data;

    @Data
    @ApiModel("订单签约数据")
    public static class SignNotifyData{

        /**
         * 用户openId
         */
        @ApiModelProperty("用户openId")
        private String openId;

        /**
         * 用户钱包ID
         */
        @ApiModelProperty("用户钱包ID")
        private String userWalletId;

        /**
         * 签约时间
         */
        @ApiModelProperty("签约时间")
        @JSONField(format= Dates.FMT_FULL_TIME)
        private Date signTime;

        /**
         * 签约备注
         */
        @ApiModelProperty("签约备注")
        private String remark;
    }
}
